package com.mezz.bones.im.gateway.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Configuration
public class NettyConfig {

  /**
   * 服务端口
   */
  private Integer port;

  /**
   * 读写空闲时间(心跳超时时间)
   */
  private Long allIdleTime;

  /**
   * 客户端读超时时间
   */
  private Long readerIdleTime;

  /**
   * 服务端写超时时间
   */
  private Long writerIdleTime;

  /**
   * boss 线程数 默认为 1
   */
  private Integer bossThreadSize;

  /**
   * work 线程数
   */
  private Integer workThreadSize;
}
